import { Module } from '@nestjs/common';
import { MailerModule } from '@nestjs-modules/mailer';
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
console.log(__dirname + '/templates');
@Module({
  imports: [
    MailerModule.forRoot({
      transport: 'smtps://wuzhongwei2024@qq.com:ybyppdbrrhwzcbbd@smtp.qq.com', // 发件人
      defaults: {
        from: '"dasdasd" <wuzhongwei2024@qq.com>', // 发件人
      },
      template: {
        dir: __dirname + '/templates',
        adapter: new HandlebarsAdapter(),
        options: {
          strict: true,
        },
      },
    }),
  ],
})
export class MailModule {}
